package dao;

import entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {

    public void insertUser(User user);

    public void deleteById(Integer id);

    public void updateUser(User user);

    public User selectById(Integer id);

    public List<User> selectAll();

    public void insertReturnPrimaryKey(User user);

    public User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

}
